<include file="public@header"/>
<style type="text/css">
    .pic-list li {
        margin-bottom: 5px;
    }
</style>
<script type="text/html" id="photos-item-tpl">
    <li id="saved-image{id}">
        <input id="photo-{id}" type="hidden" name="photo_urls[]" value="{filepath}">
        <input class="form-control" id="photo-{id}-name" type="text" name="photo_names[]" value="{name}"
               style="width: 200px;" title="图片名称">
        <img id="photo-{id}-preview" src="{url}" style="height:36px;width: 36px;"
             onclick="imagePreviewDialog(this.src);">
        <a href="javascript:uploadOneImage('图片上传','#photo-{id}');">替换</a>
        <a href="javascript:(function(){$('#saved-image{id}').remove();})();">移除</a>
    </li>
</script>
<script type="text/html" id="files-item-tpl">
    <li id="saved-file{id}">
        <input id="file-{id}" type="hidden" name="file_urls[]" value="{filepath}">
        <input class="form-control" id="file-{id}-name" type="text" name="file_names[]" value="{name}"
               style="width: 200px;" title="文件名称">
        <a id="file-{id}-preview" href="{preview_url}" target="_blank">下载</a>
        <a href="javascript:uploadOne('文件上传','#file-{id}','file');">替换</a>
        <a href="javascript:(function(){$('#saved-file{id}').remove();})();">移除</a>
    </li>
</script>
</head>
<body>
<div class="wrap js-check-wrap">


    <ul class="nav nav-tabs">
        <li><a href="{:url('project/process')}?id={$id}">开发需求确认表</a></li>
        <li><a href="{:url('project/customerChangeOpinion')}?id={$id}">客户变更意见列表</a></li> 
        <li><a href="{:url('project/changeOpinion')}?id={$id}">变更列表</a></li> 
        <li><a href="{:url('project/effectImgConfirm')}?id={$id}">PC效果图确认</a></li> 
        <li class="active"><a href="{:url('project/mobileImg')}?id={$id}">移动端效果图确认</a></li> 
        <li><a href="{:url('project/check')}?id={$id}">验收</a></li> 
        <li><a href="{:url('project/deliver')}?id={$id}">交付文档</a></li> 
    </ul>
    <br>

    <ul class="nav nav-tabs">    
        <li  class="active"><a href="" style="font-weight:bold;font-size: 18px;">效果图首页</a></li> 
    </ul>     

    <a href="javascript:;" class='btn btn-success' onclick="upload_home_img({$id});">上传首页</a>  
    <br>    <br>
    <div class="row">
        <div class="col-md-12">
           <table class="table table-bordered" style="border: none;text-align:center;">
                <tr>
                    <td style="font-weight: bold;">ID</td>
                    <td style="font-weight: bold;">图片</td>
                    <td style="font-weight: bold;">状态</td>
                    <td style="font-weight: bold;">操作</td>
                </tr>  
                <foreach name = 'result' item='vo' key='k'>                
                    <tr>
                        <td>{$k+1}</td>
                        <td><img src="./effect/upload_xiaoguotu_mobile/{$vo.home_img}" alt="" style="width: 80px;height: 80px;"></td>
                        <td><?php if($vo['status'] == 1){ echo '未通过';}else{ echo '通过';}?></td>
                        <td><a href="../effect/file_mobile/{$vo.home_img_address}" target="_blank">点击全屏</a>|<a href="javascript:;" onclick='select_img_content({$vo.id})' >查看修改意见</a></td>
                    </tr>
                </foreach>
            </table>       
        </div>

    </div>

    <ul class="nav nav-tabs">    
        <li  class="active"><a href="" style="font-weight:bold;font-size: 18px;">其他效果图</a></li> 
    </ul>   
    <a href="javascript:;" class='btn btn-success' onclick="upload_home_img_other({$id});">上传其他</a>  
    <br>    <br>  
    <div class="row">
        <div class="col-md-12">
           <table class="table table-bordered" style="border: none;text-align:center;">
                
                    <tr>
                        <foreach name='other_result' item='vo' key='k'>
                            <?php 
                                if($k % 4 == 0)
                                {
                                echo '</tr><tr>';
                                }
                            ?>
                            <td><img src="./effect/upload_xiaoguotu_mobile/{$vo.img}" alt="" style="width: 80px;height: 80px;"><br/><a href="">删除</a></td>
                        </foreach> 
                    </tr>    
                            
                
            </table>       
        </div>

    </div>
         
</div>
<script type="text/javascript" src="__STATIC__/js/admin.js"></script>
<script type="text/javascript">
    //编辑器路径定义
    var editorURL = GV.WEB_ROOT;
</script>
<script type="text/javascript" src="__STATIC__/js/ueditor/ueditor.config.js"></script>
<script type="text/javascript" src="__STATIC__/js/ueditor/ueditor.all.min.js"></script>


</body>
</html>
<script>
    function upload_home_img(id)
    {
        openIframeLayer("{:url('project/mobileHomeImgAdd')}?id="+id, '首页效果图添加', {
            area: ['80%;', '80%;'],
            btn: ['关闭'],
            yes: function (index, layero) {            
                layer.close(index); //如果设定了yes回调，需进行手工关闭
            }
        });
    }

    function upload_home_img_other(id)
    {
        openIframeLayer("{:url('project/mobileHomeImgOtherAdd')}?id="+id, '其他效果图添加', {
            area: ['80%;', '80%;'],
            btn: ['关闭'],
            yes: function (index, layero) {            
                layer.close(index); //如果设定了yes回调，需进行手工关闭
            }
        });
    }

    function select_img_content(id)
    {
        openIframeLayer("{:url('project/mobileSelectImgContent')}?id="+id, '查看修改意见', {
            area: ['80%;', '80%;'],
            btn: ['关闭'],
            yes: function (index, layero) {            
                layer.close(index); //如果设定了yes回调，需进行手工关闭
            }
        });
    }
</script>
